package cn.iocoder.yudao.module.picturebook.controller.admin.user.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户信息分页 Request VO")
@Data
public class PBUserPageReqVO extends PageParam {

    @Schema(description = "用户名", example = "李四")
    private String username;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "真实姓名", example = "芋艿")
    private String realName;

    @Schema(description = "头像URL")
    private String avatar;

    @Schema(description = "性别：1-男，2-女，0-未知")
    private Integer gender;

    @Schema(description = "出生日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] birthDate;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "用户类型：1-学生，2-老师，3-管理员", example = "2")
    private Integer userType;

    @Schema(description = "学校")
    private String school;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "班级", example = "王五")
    private String className;

    @Schema(description = "状态：1-正常，2-禁用", example = "1")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}